<?php include THEME_PATH."/Sidebar/Article_action_sidebar.php"; ?>
<div class="tm-content">
    <form action="" class="ajax-submit" method="POST" data-am-validator>
        <ul class="am-list">
            <li class="am-padding-xs">
                <ol class="am-breadcrumb am-margin-0 am-padding-0">
                    <li><a href="/">首页</a></li>
                    <li class="am-active">
                        发表新的时间日志
                    </li>
                </ol>
            </li>
            <li class="am-padding-xs ">
                标题
            </li>
            <li>
                <input name="title" class="tm-remove-border tm-input-background-color am-form-field" type="text" placeholder="填写标题" required>
            </li>
            <li class="am-padding-xs ">
                内容
            </li>
            <li class="am-padding-sm">
                <script id="editor" type="text/plain" style="height:250px;"></script>
            </li>
            <li class="am-padding-sm">
                <select name="type" data-am-selected="{maxHeight: 200, btnSize: 'sm', dropUp: 1}" required>
                    <option value="">请选择</option>
                    <?php foreach ($type as $key => $value) : ?>
                        <option value="<?= $value['type_id']; ?>"><?= $value['type_name']; ?></option>
                    <?php endforeach; ?>
                </select>
            </li>
            <li class="am-padding-xs am-text-center">
                <button class="am-btn  am-btn-xs am-btn-primary">提交</button>
            </li>
        </ul>
    </form>
</div>
<script type="text/javascript">
    var ue = UE.getEditor('editor', {
        textarea: 'content'
    });
</script>